package com.zsj.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Description:
 * @Author:
 * @Date:
 */
@Data
@ToString
@Configuration
public class ConfigBean {

    @Value("${mobile.param.dyPublicKeyPath}")
    private String dyPublicKeyPath;

    @Value("${mobile.param.selfPrivateKeyPath}")
    private String selfPrivateKeyPath;

    // @Value("${channel.dddy.host}")
    // private String dddyHost;

    // @Value("${channel.dddy.readTimeout}")
    // private int dddyReadTimeout;

    // @Value("${channel.dddy.tokenKey}")
    // private String tokenKey;

    // @Value("${channel.dddy.tokenExpireTime}")
    // private int tokenExpireTime;

    @Value("${mobile.param.batchSwitch}")
    private String batchSwitch;

    // @Value("#{'${channel.dddy.appIdInfo}'.split(',')}")
    // private List<String> appIdInfos;

    @Value("${channel.spdd.readTimeout}")
    private int readTimeout;

    @Value("${channel.spdd.host}")
    private String host;

    @Value("${mobile.param.statisticFilePath}")
    private String statisticFilePath;

    @Value("#{'${mobile.param.appIds}'.split(',')}")
    private List<String> appIds;

    @Value("${mobile.param.createFilePath}")
    private String createFilePath;

    @Value("${mobile.param.checkCarrierCode:true}")
    private Boolean checkCarrierCode;

    @Value("${mobile.param.cmPhoneNumberRegex}")
    private String cmPhoneNumberRegex;

    @Value("${mobile.param.cuPhoneNumberRegex}")
    private String cuPhoneNumberRegex;

    @Value("${mobile.param.ctPhoneNumberRegex}")
    private String ctPhoneNumberRegex;

    @Value("${mobile.param.maxNotifyTimes}")
    private Integer maxNotifyTimes;

    @Value("${mobile.param.reorderQueryTime}")
    private Integer reorderQueryTime;

    @Value("${mobile.param.reorderQueryCount}")
    private Integer reorderQueryCount;

    @Value("${mobile.param.maxReorderTimes}")
    private Integer maxReorderTimes;

}
